Page({
  data: {
    tabs: [
      {
        id: 0,
        value: "参加活动",
        isActive: true
      },
      {
        id: 1,
        value: "历史活动",
        isActive: false
      },
      {
        id: 2,
        value: "收藏活动",
        isActive: false
      }
    ]
  },
  handleTabsItemChange(e){
    const {index}=e.detail;
    let {tabs}=this.data;
    tabs.forEach((v,i)=>i===index?v.isActive=true:v.isActive=false);
    this.setData({
      tabs
    })
  }
})
